using System;
using System.Collections.Generic;
using System.Text;
using NBusiness.Query;

namespace NBusiness.Data.Providers.SqlServer.Query
{
    public class SqlGreaterThan : SqlBoolean
    {
        public bool OrEqual
        {
            get { return Operator == SqlBooleanOperator.GreaterThanOrEqual; }
            set { Operator = (value ? SqlBooleanOperator.GreaterThanOrEqual : SqlBooleanOperator.GreaterThan); }
        }

        public SqlGreaterThan() 
            : base(SqlBooleanOperator.GreaterThan)
        { }
        public SqlGreaterThan(IEvaluatable left, IEvaluatable right)
            : this(left, right, false)
        { }
        public SqlGreaterThan(IEvaluatable left, IEvaluatable right, bool orEqual)
            : base(left, (orEqual ? SqlBooleanOperator.GreaterThanOrEqual : SqlBooleanOperator.GreaterThan), right)
        { }
    }
}
